<?php

$from_url = $_SERVER['REQUEST_URI'];

if (!strstr($from_url, "actioncode=0")) {
    $tag = 2;
    $from_url = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
    $from_url .= "?" . $_SERVER['argv'][0];
}

$from_url = str_replace("/pay_approved.php?", "/pay_approved2.php?", $from_url);

header("location:http://webshop.acuityworld.com" . $from_url);

?>